/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.linktco.prison.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 档案柜格视图实体类
 *
 * @author BladeX
 * @since 2024-12-23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CabinetSided {

	@ApiModelProperty("柜ID")
	private Long cabinetId;

	@ApiModelProperty("柜名")
	private String cabinetName;

	@ApiModelProperty("层数")
	private Integer cabinetRows;

	@ApiModelProperty("可放人数资料")
	private Integer cellUsers;

	@ApiModelProperty("正面")
	private List<CellList> frontCellList;

	@ApiModelProperty("背面")
	private List<CellList> backCellList;


	@Data
	public static class CellList{
		private List<CabinetCellVO> cellList;
		CellList(List<CabinetCellVO> cellList) {
			this.cellList = cellList;
		}
	}

	public static CellList buildCellList(List<CabinetCellVO> cellList){
		return new CellList(cellList);

	}

}


